package dot;

public class Connection {
	private String a;
	private String b;
	
	public Connection(String a, String b) {
		this.a = a;
		this.b = b;
	}

	@Override
	public boolean equals(Object obj) {
		Connection other = (Connection) obj;
		
		if(this.getA().equals(other.getA()) && 
		   this.getB().equals(other.getB())) {
			return true;
		}
		
		if(this.getA().equals(other.getB()) && 
		   this.getB().equals(other.getA())) {
			return true;
		}
		
		return false;
	}

	public String getA() {
		return a;
	}

	public String getB() {
		return b;
	}
	
	
}
